using MediatR;
using UniversalAdmin.Domain.DomainEvents;
using System.Threading;
using System.Threading.Tasks;
using System;

namespace UniversalAdmin.Domain.EventHandlers;

public class MenuDeletedEventHandler : INotificationHandler<MenuDeletedEvent>
{
    public Task Handle(MenuDeletedEvent notification, CancellationToken cancellationToken)
    {
        Console.WriteLine($"[DomainEvent] 菜单删除: {notification.Menu.MenuName}");
        return Task.CompletedTask;
    }
} 